<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import _ from 'lodash'; // 添加lodash导入


import 'element-plus/theme-chalk/index.css';


export default {
  name: 'App',
  components: {
  }
}

const _ResizeObserver = window.ResizeObserver;

window.ResizeObserver = class ResizeObserver extends _ResizeObserver {
  constructor(callback) {
    callback = _.debounce(callback, 16); // 使用lodash的debounce
    super(callback);
  }
}
</script>

<style>
#app {
  height: 100%;
}

</style>